package com.abu.crms.service.impl;

import com.abu.crms.pojo.ManagerRole;
import com.abu.crms.mapper.ManagerRoleMapper;
import com.abu.crms.service.ManagerRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 阿布
 * @since 2021-02-05
 */
@Service
public class ManagerRoleServiceImpl extends ServiceImpl<ManagerRoleMapper, ManagerRole> implements ManagerRoleService {


    @Autowired
    private ManagerRoleMapper managerRoleMapper;

    @Override
    public List<Long> queryPIdList(Long mgId) {
        return this.managerRoleMapper.getPIdListByMgId(mgId);
    }
}
